package com.bruce.practice.jvm;

/**
 * @author luotuan
 * @Description
 * @create 2020-09-03 16:26
 **/
public class HeapTest {
    public static void main(String[] args) {
        System.out.println("totalMemory=="+Runtime.getRuntime().totalMemory()/1024/1024+"M");
        System.out.println("freeMemory=="+Runtime.getRuntime().freeMemory()/1024/1024+"M");
        System.out.println("maxMemory=="+Runtime.getRuntime().maxMemory()/1024/1024+"M");
    }
}
